package com.uncc.sensingsuite;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;


public class mainuserinfo extends Activity 
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        //Object o = null;
        //o.toString();
        //setContentView(R.layout.mainuserinfo);
        
        String html = "";
        
        try {
            // Create a URL for the desired page
            URL url = new URL("http://dl.dropbox.com/u/6446381/Hello.html");

            // Read all the text returned by the server
            BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
            while ((html = in.readLine()) != null) {
                // str is one line of text; readLine() strips the newline character(s)
            	String x = in.readLine();
            	html.concat(x);
            }
            in.close();
        } catch (MalformedURLException e) {
        } catch (IOException e) {
        }
        
        TextView tv = new TextView(this);
        tv.setText(html);
        setContentView(tv);
    }
    
   
    
}